Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax failure ordering in private CAS loop helpers #81

Merged
merged 1 commit into from
Mar 5, 2023

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Mar 5, 2023

They are private functions and all closure instances only operate on the value loaded, so there is no need to synchronize the first load/failed CAS.

Unlike the public API's fetch_update, in these functions, there is no way to exit the loop until the CAS succeeds. i.e., only the value synchronized by a successful CAS with the specified order will be returned to the user.

@taiki-e taiki-e force-pushed the failure-ordering branch 2 times, most recently from 07ae6ba to 341f0bb Compare March 5, 2023 09:52
They are private functions and all closure instances only operate on the
value loaded, so there is no need to synchronize the first load/failed CAS.
@taiki-e taiki-e merged commit 4acb0e0 into main Mar 5, 2023
@taiki-e taiki-e deleted the failure-ordering branch March 5, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant